'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const that = this,ctx = this.ctx;
    ctx.state.httpOption = {
      url: ['public','listPublicServicePage'],
      data:{
        merchantInfoId: '78'
      }
    }
    this.logger.info('获取首页信息')
    await that.service.handleRequest.requestDate()
    this.logger.info(ctx.body)

    await ctx.render('hello', {
      title: 'hello world',
      data: ctx.body
    });
  }
}

module.exports = HomeController;
